package com.example.onlinereadingsystem.demos.web.service;

import com.example.onlinereadingsystem.demos.web.dto.request.LoginParam;
import com.example.onlinereadingsystem.demos.web.dto.request.RegisterParam;
import com.example.onlinereadingsystem.demos.web.dto.vo.LoginVo;
import com.example.onlinereadingsystem.demos.web.util.Result;

/**
 * @Description 登录业务层
 * @Author ljm
 * @Date 2024/10/9
 */
public interface LoginService {

    /**
     * @auther ljm
     * @create 2024/12/30
     * @describe 登录接口
     */
    Result<LoginVo> login(LoginParam param);

    /**
     * @auther ljm
     * @create 2024/12/30
     * @describe 生成验证码图片
     */
    Result<String> randomImage(String key);

    /**
     * @auther ljm
     * @create 2024/12/30
     * @describe 注册接口
     */
    Result<Boolean> register(RegisterParam param);
}
